package com.gg.registration.statistics.feignClient;

import com.gg.registration.vo.order.OrderCountQueryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * Author：  chenjunjia
 * Date：    2022/4/29 20:51
 * WeChat：  China_JoJo_
 */
@FeignClient(value = "service-order",path = "/api/order/orderInfo")
public interface OrderFeignClient {

    /**
     * 订单统计 Echarts
     * 远程调用
     * @param orderCountQueryVo 条件对象
     * @return 返回一个map而不是commonresult，是因为方便取值，因为用远程调用
     */
    @PostMapping("inner/getCountMap")
    Map<String, Object> getCountMap(@RequestBody OrderCountQueryVo orderCountQueryVo);
}
